<include file="Index/Common/header" title="ThinkPHP框架" keywords="开源WEB开发框架"/>
<include file="Index/Common/size-nav"/>
<div id="main">
  <div class="content_wrapper">

      <div class="container-fluid">
          <div class="row">
              <div class="col-sm-12">
                  <aside>
                      <header><i class="fa fa-fw fa-file"></i>基本表格</header>
                      <section>
                          <div class="container-fluid">
                              <div class="row">
                                  <div class="col-sm-12">
                                      <div class="btn-group" style="margin-bottom:20px;">
                                          <button class="btn btn-default" id="btn-search"><i class="fa fa-filter"></i>查询</button>
                                          <a class="btn btn-default" id="btn-add"><i class="fa fa-file-o"></i>新建</a>
                                      </div>
                                      <div class="table-responsive">
                                          <table id="example" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
                                              <thead>
                                              <tr>
                                                  <th width="80">id</th>
                                                  <th>菜单名</th>
                                                  <th>分类</th>
                                                  <th>父菜单</th>
                                                  <th width="70">状态</th>
                                                  <th width="160">添加时间</th>
                                                  <th width="140">操作</th>
                                              </tr>
                                              </thead>
                                              <tbody>
                                                <volist name="list" id="list">
                                                  <tr>
                                                      <td>{$list.menu_id}</td>
                                                      <td>{$list.title}</td>
                                                      <td>
                                                          {$list.cid|getCidName}
                                                      </td>
                                                      <td>{$list.fMenu}</td>
                                                      <td>{$list.status|getStatus}</td>
                                                      <td>{$list.create_time|date="Y-m-d H:i",###}</td>
                                                      <td>
                                                          <a class="btn btn-primary btn-xs btn-edit " attr-id="{$list.menu_id}">编辑</a>
                                                          <button type="button" class="btn btn-warning btn-xs btn-del" attr-id="{$list.menu_id}">删除</button>
                                                      </td>
                                                  </tr>
                                                </volist>
                                              </tbody>
                                          </table>
                                      </div>
                                      <nav>
                                          <ul class="pagination">
                                            {$pageRes}
                                          </ul>
                                      </nav>
                                  </div>
                              </div>
                          </div>
                      </section>
                  </aside>
              </div>
          </div>
      </div>

  </div>

</div>
<include file="Index/Common/footer"/>
<script type="text/javascript">
  var URL = {
    'add_url':"{:U('Admin/Menu/add')}",
    'edit_url':"{:U('Admin/Menu/edit')}",
    'del_url':"{:U('Admin/Menu/setStatus')}",
    'index_url':"{:U('Admin/Menu/index')}",
    'jump_url':"{:U('Admin/Menu/index')}",
  }
</script>
</body>
</html>
